package mn.more.wits.client.dto;

/**
 * @author $Author: mikeliucc $
 * @version $Id: ExamQuestionAttachmentDTO.java 5 2008-09-01 12:08:42Z mikeliucc $
 */
public class ExamQuestionAttachmentDTO extends DataTransferObject {

	public static final int TYPE_CODE_SNIPPET = 1;
	public static final int TYPE_IMAG = 2;

	protected void afterDeserialize() {
		// so far no need
	}

	protected void beforeSerialize() {
		// so far no need
	}

	public int getDisplayOrder() {
		return getIntData("displayOrder");
	}

	public void setDisplayOrder(int displayOrder) {
		setData("displayOrder", displayOrder);
	}

	public String getDisplayName() {
		return getData("displayName");
	}

	public void setDisplayName(String displayName) {
		setData("displayName", displayName);
	}

	// todo: do we really need to set location here? could be kept just on server-side?
	public String getLocation() {
		return getData("location");
	}

	public void setLocation(String location) {
		setData("location", location);
	}

	public int getType() {
		return getIntData("type");
	}

	public void setType(int type) {
		setData("type", type);
	}

	public void setText(String text) {
		setData("text", text);
	}

	public String getText() {
		return getData("text");
	}
}
